<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <script>
  function bar(){
console.log("foo函数被调用")
  }
  
  function foo(){//一个函数如果本身自己调用了自己，那么我们把它称为递归调用
    console.log("foo函数被调用了")
    foo()
  }
  foo()
  </script>
</body>
</html>